﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Routing;  
namespace Skynet.WebFoundation.Services.Navigation
{
    public class NavigationService : INavigationService
    {
        public void Navigate(string Url)
        {
            HttpContext.Current.Response.Redirect(Url);
        }
        public void NavigateRoute(string Route, RouteValueDictionary parameters = null)
        {
            var vp =  RouteTable.Routes.GetVirtualPath(null, Route, parameters).VirtualPath;
            HttpContext.Current.Response.Redirect(vp, false);
        }
    }
}
